﻿using System.Web.Mvc;
using ControllersAndActions.Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace ControllersAndActions.Tests
{
    [TestClass]
    public class ActionTests
    {
        [TestMethod]
        public void ControllerTest()
        {
            // Arrange
            var target = new ExampleController();

            // Act
            // call the action method
            ViewResult viewResult = target.Index();
         
            // Assert
            Assert.AreEqual("Homepage", viewResult.ViewName);
        }
    }
}
